#!/usr/bin/env python
# -*- coding: utf-8 -*-
# @Time    : 2023/8/2 13:27
# @Author  : huidong.bai
# @File    : RuntimeRecorder.py
# @Software: PyCharm
# @Mail    : MasterBai2018@outlook.com

class RuntimeRecorder(object):
    def __init__(self):
        self.reset()

    def reset(self):
        self.fileSize = 0
        self.voiceTime = 0.0
        self.cpuTime = 0.0
        self.rt = 0.0
        self.process_start_time = 0
        self.process_end_time = 0
        self.create_start_time = 0
        self.create_end_time = 0
        self.tag_load_time = 0
        self.personalized_start_time = 0
        self.personalized_end_time = 0
        self.personalized_load_time = 0
        self.cancel_start_time = 0
        self.cancel_end_time = 0
        self.sys_voice_start = 0
        self.sys_voice_end = 0
        self.carplayWakeup = None
        self.setAliasStatus = None
        self.wakeupWordList = []
        self.wakeupWordListAll = []
        self.wakeupWordMain = []
        self.wakeupWordCar = []
        self.aibsVersion = None
        self.kadStart = None
        self.kadEnd = None
        self.vadStart = None
        self.vadEnd = None

        self.srErollStatus = None
        self.srErollUserId = None
        self.srErollIndex = None
        self.srErollChannel = None
        self.getUserId = None
        self.recognizeUser = None
        self.delUserCode = None
        self.endEnrollStatus = None

        self.SNR = None
        self.startCode = None
        self.stopCode = None

        self.setVROptionCode = None
        self.setVRLangCode = None
        self.setVRWordOnlineCode = None
        self.setVRWakeupOptionCode = None
        self.setVRDialogueModeCode = None
        self.setVRSeatSignalCode = None
        self.setVRSceneOptionCode = None
        self.setVROptionCode = None
        self.setVRResetCode = None
        self.setVRWakeupAliasCode = None
        self.setVRPrintOptionCode = None

        self.sreRegistResults = []
        self.sreVerifyUser = None
        self.sreVerifyConfidence = None
        self.sreText = []
        self.sreSensitiveWordCode = None
        self.sreRegisteredSpeaker = []
